import request from '@/utils/request.ts'
import {ICommonResponse} from "@/global.ts";

export const upload = (data: FormData) => {
    return request({
        url: '/calendar/calendar',
        method: 'POST',
        data
    })
}

export const configData = (): Promise<ICommonResponse<{ uid: string, title: string, start: Date, end: Date }[]>> => {
    return request({
        url: '/calendar/data',
        method: 'POST'
    })
}